package com.findweb.guava;

public class TradeAccount {
	
	private String id;
	private String owner;
	private double balance;
	
	@Override
	public int hashCode() {
		return id.hashCode();
	}
	
	@Override
	public boolean equals(Object obj) {
		if(obj instanceof TradeAccount){
			TradeAccount trade = (TradeAccount)obj;
			return id.equalsIgnoreCase(trade.id) && owner.equalsIgnoreCase(trade.owner) && balance == trade.balance;
		}
		return false;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getOwner() {
		return owner;
	}
	public void setOwner(String owner) {
		this.owner = owner;
	}
	public double getBalance() {
		return balance;
	}
	public void setBalance(double balance) {
		this.balance = balance;
	}
	
	

}
